package com.label.manager.service.impl;

import com.label.manager.domain.Job;
import com.label.manager.mapper.JobMapper;
import com.label.manager.service.IJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobServiceImpl implements IJobService {

    @Autowired(required=false)
    private JobMapper jobMapper;

    @Override
    public List<Job> selectJobList(Job job) {
        return jobMapper.selectJobList(job);
    }

    @Override
    public Job selectJobById(Long jobId) {
        return jobMapper.selectJobById(jobId);
    }

    @Override
    public int deleteJobById(Long jobId) {
        return jobMapper.deleteJobById(jobId);
    }

    @Override
    public int insertJob(Job job) {
        return jobMapper.insertJob(job);
    }

    @Override
    public int updateJob(Job job) {
        return jobMapper.updateJob(job);
    }
}
